<?php
session_start();
$userName = unserialize($_SESSION['login_user'])['userName'];
?>
<!--右侧导航-->
<style>
    div.right_div {
        position: fixed;
        top: 0px;
        right: 0px;
        width: 36px;
        height: 100%;
        background-color: #0f0f0f;
        padding: 3px;
    }

    div.right_div > div.icon_group {
        height: 30px;
        position: relative;
        top: 50%;
        margin-top: -200px;
    }

    div.right_div > div.icon_group > div.icon {
        text-align: center;
        border-bottom: 1px rgba(255, 255, 255, 0.5) solid;
        margin: 7px 0 6px 0;
        padding: 3px;
    }

    div.right_div > div.icon_group > div.icon:last-child {
        border-bottom: none;
    }

    div.right_div > div.icon_group > div.icon > a {
        color: rgba(255, 255, 255, 0.8);
    }

    div.right_div > div.icon_group > div.icon > a:hover {
        color: #f42424;
    }
</style>
<div class="right_div">
    <div class="icon_group">
        <div class="icon"><a href="" title=<?php echo isset($userName)==true? '你好，'.$userName:'登录'; ?> data-toggle="modal" data-target="#exampleModal"><span
                        class="glyphicon glyphicon-user" aria-hidden="true"></span></a></div>
        <div class="icon"><a href="page/cart.php" target="_blank" title="购物车"><span class="glyphicon glyphicon-shopping-cart"
                                                       aria-hidden="true"></span></a></div>
        <div class="icon"><a href="page/item.php" target="_blank" title="我的订单"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span></a>
        </div>
        <div class="icon"><a href="show_file.php" title="我的文件" target="_blank"><span class="glyphicon glyphicon-star-empty"
                                                        aria-hidden="true"></span></a></div>
    </div>

</div>
<?php require "page/login.php";?>
